package com.sc.serviceimpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sc.bean.T_waiting;
import com.sc.dao.WaitingDao;

@Service
public class WaitingServiceImpl {

	@Autowired
	private WaitingDao waiDao;
	
	public int add(T_waiting wai){
		
		return waiDao.addWai(wai);
		
	}
	
	public List<T_waiting> find(){		
		List<T_waiting> waiList=waiDao.query();
		System.out.print("service====");
		System.out.println(waiList);
		return waiList;		
	}
	
	public int findCount(){
		
		return waiDao.queryCount();
		
	}
	
}
